package io.renren.modules.project.service.impl;

import io.renren.modules.project.dao.NotificationReceiverDao;
import io.renren.modules.project.entity.NotificationReceiverEntity;
import io.renren.modules.project.service.NotificationReceiverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by LDC on 2018/11/27.
 */

@Service("notificationReceiverService")
public class NotificationReceiverServiceImpl implements NotificationReceiverService {
    @Autowired
    private NotificationReceiverDao notificationReceiverDao;

    @Override
    public NotificationReceiverEntity queryObject(String id){
        return notificationReceiverDao.queryObject(id);
    }

    @Override
    public List<NotificationReceiverEntity> queryList(Map<String, Object> map){
        return notificationReceiverDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return notificationReceiverDao.queryTotal(map);
    }

    @Override
    public void save(NotificationReceiverEntity notificationReceiver){
        notificationReceiverDao.save(notificationReceiver);
    }

    @Override
    public void update(NotificationReceiverEntity notificationReceiver){
        notificationReceiverDao.update(notificationReceiver);
    }

    @Override
    public void delete(String id){
        notificationReceiverDao.delete(id);
    }

    @Override
    public void deleteBatch(String[] ids){
        notificationReceiverDao.deleteBatch(ids);
    }

    @Override
    public List<Map<String, Object>> queryListByUser(String userId) {
        return notificationReceiverDao.queryListByUser(userId);
    }
}
